package com.beauty.dressing.module.mine.persenter.contract;

import com.beauty.dressing.common.bean.LeaseReadyPayResultBean;
import com.beauty.dressing.common.bean.OrderBean;

import java.util.List;

public interface OrderContract {
    /**
     * 界面请求的回调
     * 数据从这里获取
     * 方法需要的参数为返回的数据
     */
    interface ViewControl {
        void showProgress();


        void onLeaseOrder(boolean isSuccess, int code, String message, List<OrderBean> list);

        void onLeaseReadyPay(boolean isSuccess, int code, String message, LeaseReadyPayResultBean data);
    }

    /**
     * 界面调用网络请求逻辑
     */
    interface Presenter {
        void leaseOrder(String member_id, String type, String token, String page);

        void leaseReadyPay(long member_id, String token, long leaseId, long order_id, String take_way
                , String name, String address, String phone);
    }
}
